For information about scripting the <SELECT>
element, see the Scripting the <SELECT> element topic.
The Select element allows the user to chose one of a set of alternatives described by textual labels. Every alternative is represented by the <OPTION>
element.
Attributes are:
MULTIPLE
The MULTIPLE
attribute is needed when users are allowed to make several selections, e.g.
<SELECT MULTIPLE>
NAME
Specifies the name that will submitted as a name/value pair, or the name by which the element can be refered to in a script function.
SIZE
Specifies the number of visible items. If this is greater than one, then the resulting form control will be a list.
The <SELECT>
element is typically rendered as a pull down or pop-up list. For example (from the previous form fragment):
<SELECT NAME="Choice">
<OPTION>Outstanding
<OPTION>Very good
<OPTION>Good
<OPTION>Average
<OPTION>Below Average
<OPTION>Awful
<OPTION SELECTED>My response would be "indecent" under the CDA Act.
</SELECT>